# -*- coding: utf-8 -*-

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QIcon


class Ui_Login(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("Efficient Manager Login")
        MainWindow.resize(485, 311)
        MainWindow.setFixedSize(485,311)
        MainWindow.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        MainWindow.setWindowIcon(QIcon("./Pic/logo.jpg"))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.txtHost = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(5)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtHost.sizePolicy().hasHeightForWidth())
        self.txtHost.setSizePolicy(sizePolicy)
        self.txtHost.setObjectName("txtHost")
        self.horizontalLayout_2.addWidget(self.txtHost)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.txtUserName = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtUserName.sizePolicy().hasHeightForWidth())
        self.txtUserName.setSizePolicy(sizePolicy)
        self.txtUserName.setObjectName("txtUserName")

        self.horizontalLayout.addWidget(self.txtUserName)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.txtPassword = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtPassword.sizePolicy().hasHeightForWidth())
        self.txtPassword.setSizePolicy(sizePolicy)
        self.txtPassword.setEchoMode(QtWidgets.QLineEdit.Password)
        self.txtPassword.setObjectName("txtPassword")
        self.horizontalLayout_3.addWidget(self.txtPassword)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_4.addWidget(self.label_4)
        self.txtPort = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtPort.sizePolicy().hasHeightForWidth())
        self.txtPort.setSizePolicy(sizePolicy)
        self.txtPort.setObjectName("txtPort")
        self.horizontalLayout_4.addWidget(self.txtPort)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.write = QtWidgets.QPushButton(self.centralwidget)
        self.write.setObjectName("write")
        self.write.setStyleSheet("QPushButton{\n"
        "    background:#6C6C6C;\n"
        "    color:white;\n"
        "    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);font-size:18px;border-radius: 10px;font-family: 微软雅黑;\n"
        "}\n"
        "QPushButton:hover{                    \n"
        "    background:#9D9D9D;\n"
        "}\n"
        "QPushButton:pressed{\n"
        "    border: 1px solid #3C3C3C!important;\n"
        "}")
        self.horizontalLayout_5.addWidget(self.write)
        self.Login = QtWidgets.QPushButton(self.centralwidget)
        self.Login.setStyleSheet("QPushButton{\n"
        "    background:#6C6C6C;\n"
        "    color:white;\n"
        "    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);font-size:18px;border-radius: 10px;font-family: 微软雅黑;\n"
        "}\n"
        "QPushButton:hover{                    \n"
        "    background:#9D9D9D;\n"
        "}\n"
        "QPushButton:pressed{\n"
        "    border: 1px solid #3C3C3C!important;\n"
        "}")
        self.Login.setObjectName("Login")
        self.horizontalLayout_5.addWidget(self.Login)
        self.exit = QtWidgets.QPushButton(self.centralwidget)
        self.exit.setStyleSheet("QPushButton{\n"
        "    background:#6C6C6C;\n"
        "    color:white;\n"
        "    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);font-size:18px;border-radius: 10px;font-family: 微软雅黑;\n"
        "}\n"
        "QPushButton:hover{                    \n"
        "    background:#9D9D9D;\n"
        "}\n"
        "QPushButton:pressed{\n"
        "    border: 1px solid #3C3C3C!important;\n"
        "}")
        self.exit.setObjectName("exit")
        self.horizontalLayout_5.addWidget(self.exit)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 485, 26))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setStyleSheet("color:white")
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Login"))
        self.label.setText(_translate("MainWindow", "DNAC_HOST"))
        self.label.setStyleSheet("color:white")
        self.txtHost.setStatusTip(_translate("MainWindow", "控制器IP"))
        self.label_2.setText(_translate("MainWindow", "USERNAME"))
        self.label_2.setStyleSheet("color:white")
        self.txtUserName.setStatusTip(_translate("MainWindow", "用户名"))
        self.label_3.setText(_translate("MainWindow", "PASSWORD"))
        self.label_3.setStyleSheet("color:white")
        self.txtPassword.setStatusTip(_translate("MainWindow", "密码"))
        self.label_4.setText(_translate("MainWindow", "PORT"))
        self.label_4.setStyleSheet("color:white")
        self.txtPort.setStatusTip(_translate("MainWindow", "端口号"))
        self.write.setText(_translate("MainWindow", "使用默认"))
        self.Login.setText(_translate("MainWindow", "确认连接"))
        self.exit.setText(_translate("MainWindow", "退出"))
